import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index'
import Fare from '@/components/fare'
import FareDetail from '@/components/fareDetail'
import QRCode from '@/components/QRCode'
import MyTicket from '@/components/myTicket'
import MyPoints from '@/components/myPoints'
import RankingList from '@/components/rankingList'
import AddPoints from '@/components/addPoints'
import Introduction from '@/components/introduction'
import Gift from '@/components/gift'
import GiftDetail from '@/components/giftDetail'
import GiftQRCode from '@/components/giftQRCode'
import Account from '@/components/account'
import CashTicket from '@/components/cashTicket'
import TicketStatistics from '@/components/ticketStatistics'
import ResultError from '@/components/resultError'
import ResultSuccess from '@/components/resultSuccess'
import Admin from '@/components/admin'
import Rukou from '@/components/rukou'


Vue.use(Router)

export default new Router({   
    routes: [
        {
            path: '/',
            name: 'index',
            component: Index
        },
        {
            path: '/fare/:id',
            name: 'fare',
            component: Fare
        },
        {
            path: '/fareDetail/:id',
            name: 'fareDetail',
            component: FareDetail
        },
        {
            path: '/QRCode',
            name: 'QRCode',
            component: QRCode
        },
        {
            path: '/myTicket',
            name: 'myTicket',
            component: MyTicket
        },
        {
            path: '/myPoints',
            name: 'myPoints',
            component: MyPoints
        },
        {
            path: '/rankingList',
            name: 'rankingList',
            component: RankingList
        },
        {
            path: '/addPoints',
            name: 'addPoints',
            component: AddPoints
        },
        {
            path: '/introduction',
            name: 'introduction',
            component: Introduction
        },
        {
            path: '/gift',
            name: 'gift',
            component: Gift
        },
        {
            path: '/giftDetail',
            name: 'giftDetail',
            component: GiftDetail
        },
        {
            path: '/giftQRCode',
            name: 'giftQRCode',
            component: GiftQRCode
        },
        {
            path: '/account',
            name: 'account',
            component: Account
        },
        {
            path: '/cashTicket',
            name: 'cashTicket',
            component: CashTicket
        },
        {
            path: '/ticketStatistics',
            name: 'ticketStatistics',
            component: TicketStatistics
        },
        {
            path: '/resultError',
            name: 'resultError',
            component: ResultError
        },
        {
            path: '/resultSuccess',
            name: 'resultSuccess',
            component: ResultSuccess
        },
        {
            path: '/admin',
            name: 'admin',
            component: Admin
        },
        {
            path: '/rukou',
            name: 'rukou',
            component: Rukou
        },
    ]
})
